package com.ronglian.ucdisk.share.service;

import java.util.Date;
import java.util.List;

import com.ronglian.ucdisk.share.ShareEvent;


public interface ShareService {
	//Sender Related 
	public void createShare(ShareEvent shareEvent);
	
	public List<ShareEvent> myShares(String userId,int pageSize , int pageNumber) ;
	public long mySharesTotalCount(String userId) ;
	
	public void omitSend(String shareId);
	public void deleteSend(String shareId) ; 
	
	
	public void deleteNode(String shareId , String nodeId) ;
	public void deleteReceiver(String shareId,String receiverId) ; 
	
	public void addNode(String shareId,String nodeId) ; 
	public void addReceiver(String shareId,String receiverId,String receiverType) ; 
	
	public void updateShare(String shareId,String permission,Date endTime) ; 
	
	
	// 下面是 接收方的 接口 
	public List<ShareEvent> sharesToMe(String userId,int pageSize , int pageNumber) ;
	public long sharesToMeTotalCount(String userId);
	
	public void omitRecv(String userId , String shareId);
	public void reShare(String shareId , String newReceiverId,String type) ; 
	
	// Common API 
	
	public ShareEvent getShareDetail(String shareId); 
}
